//
//  BannerModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/4.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "BannerModel.h"

@implementation BannerModel

- (BannerModel *)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.type = [dict[@"type"] integerValue];
        self.avatarUrl = dict[@"avatarUrl"];
        self.ID = dict[@"id"];
        self.title = dict[@"title"];
        self.bannerUrl = dict[@"bannerUrl"];
    }
    return self;
}

+ (instancetype)bannerWithDict:(NSDictionary *)dict
{
    return [[BannerModel alloc]initWithDict:dict];
}

@end
